home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
BORL_TIP
/
TI100
/
TI423.ASC
< prev
next >
Wrap
Text File
|
1991-09-11
|
2KB
|
67 lines
PRODUCT : TURBO PASCAL NUMBER : 423
VERSION : 4.0
OS : MS-DOS, PC-DOC
DATE : SEPTEMBER 20, 1988 PAGE : 1/1
TITLE : PATCH FOR ^KW BLOCK WRITE DISK FILE SIZE NOT
TRUNCATED BUG
This handout describes the patch needed in order for the Turbo
Pascal 4.0 editor to correctly block copy a portion of code out
of a source file and truncate the file's size on disk. The
following patch should be made to the TURBO.EXE file using the
DOS utility, DEBUG.
1. Copy TURBO.EXE to a file called TURBO.TXT. (DEBUG will
not allow modifications to be made to an .EXE file.)
2. Load TURBO.TXT into DEBUG with the command:
DEBUG TURBO.TXT
3. At DEBUG'S "-" prompt, enter the command E CS:3FCD. Press
<Return>. This allows you to edit the code at address
CS:3FCD. The number 01. will appear. Type 3 next to it
and press <Return>. Enter W <Return> to write the patched
program to disk and Q <Return> to quit. You have
successsfully patched Turbo Pascal. Your DEBUG session
should look something like this:
C:\TURBO>debug turbo.txt
-e CS:3FCD
29C9:3FCD 01.3
-w
Writing 1C248 bytes
-q
4. Rename TURBO.TXT to TU.EXE. (Use a name other than
TURBO.EXE so you can distinguish between the original and
corrected versions.)